<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
  <head>
  	<style type="text/css">
  		*{
  			font-size:10pt;
  		}
  	</style>
  	
  	 	<!-- 多谢了两个才会出现两个按钮叠加的效果 -->
  	
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  <link rel="stylesheet" href="${pageContext.request.contextPath}/easyui/themes/default/easyui.css" type="text/css"></link>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/easyui/themes/icon.css" type="text/css"></link>
  <script type="text/javascript" src="${pageContext.request.contextPath}/easyui/jquery.min.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath}/easyui/jquery.easyui.min.js"></script>
  </head>
  <body style="text-align:center">
  <br /><br /><br /><br /><br /><br /><br /><br />
      <c:if test="${ !empty sessionScope.success}">
      			<script type="text/javascript">
				 $.messager.alert('注册','注册成功','info',function(){
				  window.location.href="${pageContext.request.contextPath }/jsp/front/user/login.jsp";
				 });   
				
			      </script>
      </c:if>
  	  <span>
  	    <font color="green">
  	  	恭喜您账户注册成功!<br/>
  	  	    </font>
  	  	<label id="msg"></label><br/>
  	  	<a href="${pageContext.request.contextPath }/jsp/front/user/login.jsp">现在转去登录</a>
  	  </span>
  	
  </body>
  <script type="text/javascript">
  	  //计时
  	  var i=7;
  	  function run(){
  		  i--;
  		  document.getElementById("msg").innerHTML=i+"秒以后自动转到登录页面!";
  		  if(i<1){
  			  window.clearInterval(tm);//清除计时器
  			  window.location.href="${pageContext.request.contextPath }/jsp/front/user/login.jsp";
  		  }
  	  }
  	  var tm = window.setInterval(run, 1000);
  </script>
</html>
